
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon iconfont icon-rili"></i>
                    <div class="name">日历</div>
                    <div class="fontclass">.icon-rili</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-user"></i>
                    <div class="name">用户</div>
                    <div class="fontclass">.icon-user</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-prev-arrow"></i>
                    <div class="name">分页-01</div>
                    <div class="fontclass">.icon-prev-arrow</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-next-arrow"></i>
                    <div class="name">分页-02</div>
                    <div class="fontclass">.icon-next-arrow</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-icon"></i>
                    <div class="name">右箭头</div>
                    <div class="fontclass">.icon-icon</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dagou"></i>
                    <div class="name">打勾</div>
                    <div class="fontclass">.icon-dagou</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-sousuo"></i>
                    <div class="name">搜索</div>
                    <div class="fontclass">.icon-sousuo</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-gouwuche"></i>
                    <div class="name">购物车</div>
                    <div class="fontclass">.icon-gouwuche</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-shouji"></i>
                    <div class="name">手机</div>
                    <div class="fontclass">.icon-shouji</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-sanjiaoxing-right"></i>
                    <div class="name">三角形-right</div>
                    <div class="fontclass">.icon-sanjiaoxing-right</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-sanjiaoxing-down"></i>
                    <div class="name">三角形-down</div>
                    <div class="fontclass">.icon-sanjiaoxing-down</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-sanjiaoxing-left"></i>
                    <div class="name">三角形-left</div>
                    <div class="fontclass">.icon-sanjiaoxing-left</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-selected-box"></i>
                    <div class="name">选中</div>
                    <div class="fontclass">.icon-selected-box</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dianhua"></i>
                    <div class="name">电话</div>
                    <div class="fontclass">.icon-dianhua</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-jiajian-"></i>
                    <div class="name">加减-01</div>
                    <div class="fontclass">.icon-jiajian-</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-jian"></i>
                    <div class="name">减</div>
                    <div class="fontclass">.icon-jian</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-jia"></i>
                    <div class="name">加</div>
                    <div class="fontclass">.icon-jia</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-off"></i>
                    <div class="name">加减-02</div>
                    <div class="fontclass">.icon-off</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-yibanxingxing"></i>
                    <div class="name">一半星星</div>
                    <div class="fontclass">.icon-yibanxingxing</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-kecheng"></i>
                    <div class="name">课程</div>
                    <div class="fontclass">.icon-kecheng</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-shangxiajiantou"></i>
                    <div class="name">上下箭头</div>
                    <div class="fontclass">.icon-shangxiajiantou</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-liangbiaoti-xingxingxuanzhong"></i>
                    <div class="name">量表题-星星选中</div>
                    <div class="fontclass">.icon-liangbiaoti-xingxingxuanzhong</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-liangbiaoti-xingxingweixuanzhong"></i>
                    <div class="name">量表题-星星未选中</div>
                    <div class="fontclass">.icon-liangbiaoti-xingxingweixuanzhong</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-delete"></i>
                    <div class="name">删  除</div>
                    <div class="fontclass">.icon-delete</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-right"></i>
                    <div class="name">右箭头</div>
                    <div class="fontclass">.icon-right</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-shanchu"></i>
                    <div class="name">删 除 (1)</div>
                    <div class="fontclass">.icon-shanchu</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-shetuanhuodong"></i>
                    <div class="name">社团活动</div>
                    <div class="fontclass">.icon-shetuanhuodong</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-youxiang"></i>
                    <div class="name">邮箱</div>
                    <div class="fontclass">.icon-youxiang</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-jiajianzujianjiahao"></i>
                    <div class="name">加减组件 加号</div>
                    <div class="fontclass">.icon-jiajianzujianjiahao</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-shanchu1"></i>
                    <div class="name">删除</div>
                    <div class="fontclass">.icon-shanchu1</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-icon-arrDown-fill"></i>
                    <div class="name">下  拉</div>
                    <div class="fontclass">.icon-icon-arrDown-fill</div>
                </li>
            
        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
